import 'package:json_annotation/json_annotation.dart';

part 'message_model.g.dart';

@JsonSerializable()
class MessageModel {
  final num? id;
  final num? member_id;
  final String? send_title;
  final String? send_type;
  final String? send_message;
  final num? is_read;
  final num? status;
  final String? create_time;
  final String? update_time;

  const MessageModel(
      this.id,
      this.member_id,
      this.send_title,
      this.send_type,
      this.send_message,
      this.is_read,
      this.status,
      this.create_time,
      this.update_time,
      );

  factory MessageModel.fromJson(Map<String, dynamic> json) =>
      _$MessageModelFromJson(json);

  Map<String, dynamic> toJson() => _$MessageModelToJson(this);
}
